package com.manager.enterprise.module;

import java.util.*;

import com.alibaba.fastjson.JSON;
import com.manager.enterprise.module.platform.core.service.PublicCommService;
import com.manager.enterprise.web.controller.AdminController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@Controller
@RequestMapping(value = "/comm")
public class PublicController extends AdminController<String> {
    @Autowired
    private PublicCommService _service;
    private final String UPLOAD_PATH = "UPLOAD_PATH";



    private String getToJson(List<Map<String, String>> result) {
        Map<String, Object> pMap = getParams();
        if (pMap != null && pMap.containsKey("s")) {
            result.add(0, new HashMap<String, String>() {
                private static final long serialVersionUID = 1144021784068290364L;

                {
                    put("text", "--请选择--");
                    put("value", "");
                }
            });
        }
        return JSON.toJSONString(result);
    }


    @Override
    public String getModel() {
        return null;
    }
}